package cn.breeze.pet.service.impl;

import cn.breeze.pet.domain.PetDetail;
import cn.breeze.pet.mapper.PetDetailMapper;
import cn.breeze.pet.service.IPetDetailService;
import cn.breeze.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author breeze
 * @since 2022-07-16
 */
@Service
public class PetDetailServiceImpl extends BaseServiceImpl<PetDetail> implements IPetDetailService {

    @Autowired
    private PetDetailMapper petDetailMapper;

    /**
    * @Title: loadByPetId
    * @Description: 根据petId查询
    * @Author: Mr.D
    * @Version: 1.0
    * @Date:  2022/7/17 13:06
    * @Parameters: [id]
    * @Return cn.breeze.pet.domain.PetDetail
    */
    @Override
    public PetDetail loadByPetId(Long id) {
        return petDetailMapper.loadByPetId(id);
    }
}
